import type { PlasmoMessaging } from "@plasmohq/messaging"

const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
  console.log("收到hello消息:", req.body)
  res.send({
    message: `hello,${req.body.name || 'world'}!`,
    timestamp: Date.now().toString
  })
}

export default handler